﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using EasyToHelp.Business;
using EasyToHelp.Common;

namespace EasyToHelp.WEB.Controllers
{
    public class PurchaseController : Controller
    {

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public IActionResult Index()
        {
            return View();
        }


        public IActionResult MenusData()
        {
            var list = SysUsersBusiness.GetUsersList();
            if (list.Count>0)
            {
                return Json( new { rows = list, totalCount = list.Count});
            }
            return Json(new { rows = "", totalCount = 0 });
        }     
    }   
}